home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
151-175
/
disk_164
/
c-functions
/
strlencmp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-06
|
283b
|
13 lines
#include <exec/types.h>
int strlencmp (s,t,n) /* Stringcompare n letters; NULL if s == t */
UBYTE s[], t[]; /* End at first '\0' ( if found ) */
int n;
{
register int i=0;
while ( (i<n-1) && s[i] == t[i] && s[i] && t[i]) i++;
return( (int)(s[i] - t[i]) );
}